package com.furioussnails.sourcecodeanalysis.sqlsession;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface SqlSession {
    //查询所有
    <T> List<T> selectList(String statementId,Object... params) throws SQLException, IllegalAccessException, IntrospectionException, InstantiationException, NoSuchFieldException, InvocationTargetException, ClassNotFoundException;
    //根据条件查询
    <T> T selectOne(String statement,Object... params) throws Exception;
    
    <T> T getMapper(Class<?> mapperClass);
}
